<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>mediamodel.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_ui_media_mediamodel.js.html">mediamodel.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2009 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Provides the base media model consistent with the Yahoo Media
<a name="line17"></a> * RSS specification {@link http://search.yahoo.com/mrss/}.
<a name="line18"></a> */
<a name="line19"></a>
<a name="line20"></a>goog.provide(&#39;goog.ui.media.MediaModel&#39;);
<a name="line21"></a>goog.provide(&#39;goog.ui.media.MediaModel.Category&#39;);
<a name="line22"></a>goog.provide(&#39;goog.ui.media.MediaModel.Credit&#39;);
<a name="line23"></a>goog.provide(&#39;goog.ui.media.MediaModel.Credit.Role&#39;);
<a name="line24"></a>goog.provide(&#39;goog.ui.media.MediaModel.Credit.Scheme&#39;);
<a name="line25"></a>goog.provide(&#39;goog.ui.media.MediaModel.Medium&#39;);
<a name="line26"></a>goog.provide(&#39;goog.ui.media.MediaModel.MimeType&#39;);
<a name="line27"></a>goog.provide(&#39;goog.ui.media.MediaModel.Player&#39;);
<a name="line28"></a>goog.provide(&#39;goog.ui.media.MediaModel.SubTitle&#39;);
<a name="line29"></a>goog.provide(&#39;goog.ui.media.MediaModel.Thumbnail&#39;);
<a name="line30"></a>
<a name="line31"></a>goog.require(&#39;goog.array&#39;);
<a name="line32"></a>
<a name="line33"></a>
<a name="line34"></a>
<a name="line35"></a>/**
<a name="line36"></a> * An base data value class for all media data models.
<a name="line37"></a> *
<a name="line38"></a> * MediaModels are exact matches to the fields defined in the Yahoo RSS media
<a name="line39"></a> * specification {@link http://search.yahoo.com/mrss/}.
<a name="line40"></a> *
<a name="line41"></a> * The current common data shared by medias is to have URLs, mime types,
<a name="line42"></a> * captions, descriptions, thumbnails and players. Some of these may not be
<a name="line43"></a> * available, or applications may not want to render them, so {@code null}
<a name="line44"></a> * values are allowed. {@code goog.ui.media.MediaRenderer} checks whether the
<a name="line45"></a> * values are available before creating DOMs for them.
<a name="line46"></a> *
<a name="line47"></a> * TODO(user): support asynchronous data models by subclassing
<a name="line48"></a> * {@link goog.events.EventTarget} or {@link goog.ds.DataNode}. Understand why
<a name="line49"></a> * {@link http://goto/datanode} is not available in closure. Add setters to
<a name="line50"></a> * MediaModel once this is supported.
<a name="line51"></a> *
<a name="line52"></a> * @param {string=} opt_url An optional URL of the media.
<a name="line53"></a> * @param {string=} opt_caption An optional caption of the media.
<a name="line54"></a> * @param {string=} opt_description An optional description of the media.
<a name="line55"></a> * @param {goog.ui.media.MediaModel.MimeType=} opt_type The type of the media.
<a name="line56"></a> * @param {goog.ui.media.MediaModel.Medium=} opt_medium The medium of the media.
<a name="line57"></a> * @param {number=} opt_duration The duration of the media in seconds.
<a name="line58"></a> * @param {number=} opt_width The width of the media in pixels.
<a name="line59"></a> * @param {number=} opt_height The height of the media in pixels.
<a name="line60"></a> * @constructor
<a name="line61"></a> */
<a name="line62"></a>goog.ui.media.MediaModel = function(opt_url,
<a name="line63"></a>                                    opt_caption,
<a name="line64"></a>                                    opt_description,
<a name="line65"></a>                                    opt_type,
<a name="line66"></a>                                    opt_medium,
<a name="line67"></a>                                    opt_duration,
<a name="line68"></a>                                    opt_width,
<a name="line69"></a>                                    opt_height) {
<a name="line70"></a>  /**
<a name="line71"></a>   * The URL of the media.
<a name="line72"></a>   * @type {string|undefined}
<a name="line73"></a>   * @private
<a name="line74"></a>   */
<a name="line75"></a>  this.url_ = opt_url;
<a name="line76"></a>
<a name="line77"></a>  /**
<a name="line78"></a>   * The caption of the media.
<a name="line79"></a>   * @type {string|undefined}
<a name="line80"></a>   * @private
<a name="line81"></a>   */
<a name="line82"></a>  this.caption_ = opt_caption;
<a name="line83"></a>
<a name="line84"></a>  /**
<a name="line85"></a>   * A description of the media, typically user generated comments about it.
<a name="line86"></a>   * @type {string|undefined}
<a name="line87"></a>   * @private
<a name="line88"></a>   */
<a name="line89"></a>  this.description_ = opt_description;
<a name="line90"></a>
<a name="line91"></a>  /**
<a name="line92"></a>   * The mime type of the media.
<a name="line93"></a>   * @type {goog.ui.media.MediaModel.MimeType|undefined}
<a name="line94"></a>   * @private
<a name="line95"></a>   */
<a name="line96"></a>  this.type_ = opt_type;
<a name="line97"></a>
<a name="line98"></a>  /**
<a name="line99"></a>   * The medium of the media.
<a name="line100"></a>   * @type {goog.ui.media.MediaModel.Medium|undefined}
<a name="line101"></a>   * @private
<a name="line102"></a>   */
<a name="line103"></a>  this.medium_ = opt_medium;
<a name="line104"></a>
<a name="line105"></a>  /**
<a name="line106"></a>   * The duration of the media in seconds.
<a name="line107"></a>   * @type {number|undefined}
<a name="line108"></a>   * @private
<a name="line109"></a>   */
<a name="line110"></a>  this.duration_ = opt_duration;
<a name="line111"></a>
<a name="line112"></a>  /**
<a name="line113"></a>   * The width of the media in pixels.
<a name="line114"></a>   * @type {number|undefined}
<a name="line115"></a>   * @private
<a name="line116"></a>   */
<a name="line117"></a>  this.width_ = opt_width;
<a name="line118"></a>
<a name="line119"></a>  /**
<a name="line120"></a>   * The height of the media in pixels.
<a name="line121"></a>   * @type {number|undefined}
<a name="line122"></a>   * @private
<a name="line123"></a>   */
<a name="line124"></a>  this.height_ = opt_height;
<a name="line125"></a>
<a name="line126"></a>  /**
<a name="line127"></a>   * A list of thumbnails representations of the media (eg different sizes of
<a name="line128"></a>   * the same photo, etc).
<a name="line129"></a>   * @type {Array.&lt;goog.ui.media.MediaModel.Thumbnail&gt;}
<a name="line130"></a>   * @private
<a name="line131"></a>   */
<a name="line132"></a>  this.thumbnails_ = [];
<a name="line133"></a>
<a name="line134"></a>  /**
<a name="line135"></a>   * The list of categories that are applied to this media.
<a name="line136"></a>   * @type {Array.&lt;goog.ui.media.MediaModel.Category&gt;}
<a name="line137"></a>   * @private
<a name="line138"></a>   */
<a name="line139"></a>  this.categories_ = [];
<a name="line140"></a>
<a name="line141"></a>  /**
<a name="line142"></a>   * The list of credits that pertain to this media object.
<a name="line143"></a>   * @type {!Array.&lt;goog.ui.media.MediaModel.Credit&gt;}
<a name="line144"></a>   * @private
<a name="line145"></a>   */
<a name="line146"></a>  this.credits_ = [];
<a name="line147"></a>
<a name="line148"></a>  /**
<a name="line149"></a>   * The list of subtitles for the media object.
<a name="line150"></a>   * @type {Array.&lt;goog.ui.media.MediaModel.SubTitle&gt;}
<a name="line151"></a>   * @private
<a name="line152"></a>   */
<a name="line153"></a>  this.subTitles_ = [];
<a name="line154"></a>};
<a name="line155"></a>
<a name="line156"></a>
<a name="line157"></a>/**
<a name="line158"></a> * The supported media mime types, a subset of the media types found here:
<a name="line159"></a> * {@link http://www.iana.org/assignments/media-types/} and here
<a name="line160"></a> * {@link http://en.wikipedia.org/wiki/Internet_media_type}
<a name="line161"></a> * @enum {string}
<a name="line162"></a> */
<a name="line163"></a>goog.ui.media.MediaModel.MimeType = {
<a name="line164"></a>  HTML: &#39;text/html&#39;,
<a name="line165"></a>  PLAIN: &#39;text/plain&#39;,
<a name="line166"></a>  FLASH: &#39;application/x-shockwave-flash&#39;,
<a name="line167"></a>  JPEG: &#39;image/jpeg&#39;,
<a name="line168"></a>  GIF: &#39;image/gif&#39;,
<a name="line169"></a>  PNG: &#39;image/png&#39;
<a name="line170"></a>};
<a name="line171"></a>
<a name="line172"></a>
<a name="line173"></a>/**
<a name="line174"></a> * Supported mediums, found here:
<a name="line175"></a> * {@link http://video.search.yahoo.com/mrss}
<a name="line176"></a> * @enum {string}
<a name="line177"></a> */
<a name="line178"></a>goog.ui.media.MediaModel.Medium = {
<a name="line179"></a>  IMAGE: &#39;image&#39;,
<a name="line180"></a>  AUDIO: &#39;audio&#39;,
<a name="line181"></a>  VIDEO: &#39;video&#39;,
<a name="line182"></a>  DOCUMENT: &#39;document&#39;,
<a name="line183"></a>  EXECUTABLE: &#39;executable&#39;
<a name="line184"></a>};
<a name="line185"></a>
<a name="line186"></a>
<a name="line187"></a>/**
<a name="line188"></a> * The media player.
<a name="line189"></a> * @type {goog.ui.media.MediaModel.Player}
<a name="line190"></a> * @private
<a name="line191"></a> */
<a name="line192"></a>goog.ui.media.MediaModel.prototype.player_;
<a name="line193"></a>
<a name="line194"></a>
<a name="line195"></a>/**
<a name="line196"></a> * Gets the URL of this media.
<a name="line197"></a> * @return {string|undefined} The URL of the media.
<a name="line198"></a> */
<a name="line199"></a>goog.ui.media.MediaModel.prototype.getUrl = function() {
<a name="line200"></a>  return this.url_;
<a name="line201"></a>};
<a name="line202"></a>
<a name="line203"></a>
<a name="line204"></a>/**
<a name="line205"></a> * Sets the URL of this media.
<a name="line206"></a> * @param {string} url The URL of the media.
<a name="line207"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line208"></a> */
<a name="line209"></a>goog.ui.media.MediaModel.prototype.setUrl = function(url) {
<a name="line210"></a>  this.url_ = url;
<a name="line211"></a>  return this;
<a name="line212"></a>};
<a name="line213"></a>
<a name="line214"></a>
<a name="line215"></a>/**
<a name="line216"></a> * Gets the caption of this media.
<a name="line217"></a> * @return {string|undefined} The caption of the media.
<a name="line218"></a> */
<a name="line219"></a>goog.ui.media.MediaModel.prototype.getCaption = function() {
<a name="line220"></a>  return this.caption_;
<a name="line221"></a>};
<a name="line222"></a>
<a name="line223"></a>
<a name="line224"></a>/**
<a name="line225"></a> * Sets the caption of this media.
<a name="line226"></a> * @param {string} caption The caption of the media.
<a name="line227"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line228"></a> */
<a name="line229"></a>goog.ui.media.MediaModel.prototype.setCaption = function(caption) {
<a name="line230"></a>  this.caption_ = caption;
<a name="line231"></a>  return this;
<a name="line232"></a>};
<a name="line233"></a>
<a name="line234"></a>
<a name="line235"></a>/**
<a name="line236"></a> * Gets the media mime type.
<a name="line237"></a> * @return {goog.ui.media.MediaModel.MimeType|undefined} The media mime type.
<a name="line238"></a> */
<a name="line239"></a>goog.ui.media.MediaModel.prototype.getType = function() {
<a name="line240"></a>  return this.type_;
<a name="line241"></a>};
<a name="line242"></a>
<a name="line243"></a>
<a name="line244"></a>/**
<a name="line245"></a> * Sets the media mime type.
<a name="line246"></a> * @param {goog.ui.media.MediaModel.MimeType} type The media mime type.
<a name="line247"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line248"></a> */
<a name="line249"></a>goog.ui.media.MediaModel.prototype.setType = function(type) {
<a name="line250"></a>  this.type_ = type;
<a name="line251"></a>  return this;
<a name="line252"></a>};
<a name="line253"></a>
<a name="line254"></a>
<a name="line255"></a>/**
<a name="line256"></a> * Gets the media medium.
<a name="line257"></a> * @return {goog.ui.media.MediaModel.Medium|undefined} The media medium.
<a name="line258"></a> */
<a name="line259"></a>goog.ui.media.MediaModel.prototype.getMedium = function() {
<a name="line260"></a>  return this.medium_;
<a name="line261"></a>};
<a name="line262"></a>
<a name="line263"></a>
<a name="line264"></a>/**
<a name="line265"></a> * Sets the media medium.
<a name="line266"></a> * @param {goog.ui.media.MediaModel.Medium} medium The media medium.
<a name="line267"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line268"></a> */
<a name="line269"></a>goog.ui.media.MediaModel.prototype.setMedium = function(medium) {
<a name="line270"></a>  this.medium_ = medium;
<a name="line271"></a>  return this;
<a name="line272"></a>};
<a name="line273"></a>
<a name="line274"></a>
<a name="line275"></a>/**
<a name="line276"></a> * Gets the description of this media.
<a name="line277"></a> * @return {string|undefined} The description of the media.
<a name="line278"></a> */
<a name="line279"></a>goog.ui.media.MediaModel.prototype.getDescription = function() {
<a name="line280"></a>  return this.description_;
<a name="line281"></a>};
<a name="line282"></a>
<a name="line283"></a>
<a name="line284"></a>/**
<a name="line285"></a> * Sets the description of this media.
<a name="line286"></a> * @param {string} description The description of the media.
<a name="line287"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line288"></a> */
<a name="line289"></a>goog.ui.media.MediaModel.prototype.setDescription = function(description) {
<a name="line290"></a>  this.description_ = description;
<a name="line291"></a>  return this;
<a name="line292"></a>};
<a name="line293"></a>
<a name="line294"></a>
<a name="line295"></a>/**
<a name="line296"></a> * Gets the thumbnail urls.
<a name="line297"></a> * @return {Array.&lt;goog.ui.media.MediaModel.Thumbnail&gt;} The list of thumbnails.
<a name="line298"></a> */
<a name="line299"></a>goog.ui.media.MediaModel.prototype.getThumbnails = function() {
<a name="line300"></a>  return this.thumbnails_;
<a name="line301"></a>};
<a name="line302"></a>
<a name="line303"></a>
<a name="line304"></a>/**
<a name="line305"></a> * Sets the thumbnail list.
<a name="line306"></a> * @param {Array.&lt;goog.ui.media.MediaModel.Thumbnail&gt;} thumbnails The list of
<a name="line307"></a> *     thumbnail.
<a name="line308"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line309"></a> */
<a name="line310"></a>goog.ui.media.MediaModel.prototype.setThumbnails = function(thumbnails) {
<a name="line311"></a>  this.thumbnails_ = thumbnails;
<a name="line312"></a>  return this;
<a name="line313"></a>};
<a name="line314"></a>
<a name="line315"></a>
<a name="line316"></a>/**
<a name="line317"></a> * Gets the duration of the media.
<a name="line318"></a> * @return {number|undefined} The duration in seconds.
<a name="line319"></a> */
<a name="line320"></a>goog.ui.media.MediaModel.prototype.getDuration = function() {
<a name="line321"></a>  return this.duration_;
<a name="line322"></a>};
<a name="line323"></a>
<a name="line324"></a>
<a name="line325"></a>/**
<a name="line326"></a> * Sets duration of the media.
<a name="line327"></a> * @param {number} duration The duration of the media, in seconds.
<a name="line328"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line329"></a> */
<a name="line330"></a>goog.ui.media.MediaModel.prototype.setDuration = function(duration) {
<a name="line331"></a>  this.duration_ = duration;
<a name="line332"></a>  return this;
<a name="line333"></a>};
<a name="line334"></a>
<a name="line335"></a>
<a name="line336"></a>/**
<a name="line337"></a> * Gets the width of the media in pixels.
<a name="line338"></a> * @return {number|undefined} The width in pixels.
<a name="line339"></a> */
<a name="line340"></a>goog.ui.media.MediaModel.prototype.getWidth = function() {
<a name="line341"></a>  return this.width_;
<a name="line342"></a>};
<a name="line343"></a>
<a name="line344"></a>
<a name="line345"></a>/**
<a name="line346"></a> * Sets the width of the media.
<a name="line347"></a> * @param {number} width The width of the media, in pixels.
<a name="line348"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line349"></a> */
<a name="line350"></a>goog.ui.media.MediaModel.prototype.setWidth = function(width) {
<a name="line351"></a>  this.width_ = width;
<a name="line352"></a>  return this;
<a name="line353"></a>};
<a name="line354"></a>
<a name="line355"></a>
<a name="line356"></a>/**
<a name="line357"></a> * Gets the height of the media in pixels.
<a name="line358"></a> * @return {number|undefined} The height in pixels.
<a name="line359"></a> */
<a name="line360"></a>goog.ui.media.MediaModel.prototype.getHeight = function() {
<a name="line361"></a>  return this.height_;
<a name="line362"></a>};
<a name="line363"></a>
<a name="line364"></a>
<a name="line365"></a>/**
<a name="line366"></a> * Sets the height of the media.
<a name="line367"></a> * @param {number} height The height of the media, in pixels.
<a name="line368"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line369"></a> */
<a name="line370"></a>goog.ui.media.MediaModel.prototype.setHeight = function(height) {
<a name="line371"></a>  this.height_ = height;
<a name="line372"></a>  return this;
<a name="line373"></a>};
<a name="line374"></a>
<a name="line375"></a>
<a name="line376"></a>/**
<a name="line377"></a> * Gets the player data.
<a name="line378"></a> * @return {goog.ui.media.MediaModel.Player|undefined} The media player data.
<a name="line379"></a> */
<a name="line380"></a>goog.ui.media.MediaModel.prototype.getPlayer = function() {
<a name="line381"></a>  return this.player_;
<a name="line382"></a>};
<a name="line383"></a>
<a name="line384"></a>
<a name="line385"></a>/**
<a name="line386"></a> * Sets the player data.
<a name="line387"></a> * @param {goog.ui.media.MediaModel.Player} player The media player data.
<a name="line388"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line389"></a> */
<a name="line390"></a>goog.ui.media.MediaModel.prototype.setPlayer = function(player) {
<a name="line391"></a>  this.player_ = player;
<a name="line392"></a>  return this;
<a name="line393"></a>};
<a name="line394"></a>
<a name="line395"></a>
<a name="line396"></a>/**
<a name="line397"></a> * Gets the categories of the media.
<a name="line398"></a> * @return {Array.&lt;goog.ui.media.MediaModel.Category&gt;} The categories of the
<a name="line399"></a> *     media.
<a name="line400"></a> */
<a name="line401"></a>goog.ui.media.MediaModel.prototype.getCategories = function() {
<a name="line402"></a>  return this.categories_;
<a name="line403"></a>};
<a name="line404"></a>
<a name="line405"></a>
<a name="line406"></a>/**
<a name="line407"></a> * Sets the categories of the media
<a name="line408"></a> * @param {Array.&lt;goog.ui.media.MediaModel.Category&gt;} categories The categories
<a name="line409"></a> *     of the media.
<a name="line410"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line411"></a> */
<a name="line412"></a>goog.ui.media.MediaModel.prototype.setCategories = function(categories) {
<a name="line413"></a>  this.categories_ = categories;
<a name="line414"></a>  return this;
<a name="line415"></a>};
<a name="line416"></a>
<a name="line417"></a>
<a name="line418"></a>/**
<a name="line419"></a> * Finds the first category with the given scheme.
<a name="line420"></a> * @param {string} scheme The scheme to search for.
<a name="line421"></a> * @return {goog.ui.media.MediaModel.Category} The category that has the
<a name="line422"></a> *     given scheme. May be null.
<a name="line423"></a> */
<a name="line424"></a>goog.ui.media.MediaModel.prototype.findCategoryWithScheme = function(scheme) {
<a name="line425"></a>  if (!this.categories_) {
<a name="line426"></a>    return null;
<a name="line427"></a>  }
<a name="line428"></a>  var category = goog.array.find(this.categories_, function(category) {
<a name="line429"></a>    return category ? (scheme == category.getScheme()) : false;
<a name="line430"></a>  });
<a name="line431"></a>  return /** @type {goog.ui.media.MediaModel.Category} */ (category);
<a name="line432"></a>};
<a name="line433"></a>
<a name="line434"></a>
<a name="line435"></a>/**
<a name="line436"></a> * Gets the credits of the media.
<a name="line437"></a> * @return {!Array.&lt;goog.ui.media.MediaModel.Credit&gt;} The credits of the media.
<a name="line438"></a> */
<a name="line439"></a>goog.ui.media.MediaModel.prototype.getCredits = function() {
<a name="line440"></a>  return this.credits_;
<a name="line441"></a>};
<a name="line442"></a>
<a name="line443"></a>
<a name="line444"></a>/**
<a name="line445"></a> * Sets the credits of the media
<a name="line446"></a> * @param {!Array.&lt;goog.ui.media.MediaModel.Credit&gt;} credits The credits of the
<a name="line447"></a> *     media.
<a name="line448"></a> * @return {!goog.ui.media.MediaModel} The object itself, used for chaining.
<a name="line449"></a> */
<a name="line450"></a>goog.ui.media.MediaModel.prototype.setCredits = function(credits) {
<a name="line451"></a>  this.credits_ = credits;
<a name="line452"></a>  return this;
<a name="line453"></a>};
<a name="line454"></a>
<a name="line455"></a>
<a name="line456"></a>/**
<a name="line457"></a> * Finds all credits with the given role.
<a name="line458"></a> * @param {string} role The role to search for.
<a name="line459"></a> * @return {!Array.&lt;!goog.ui.media.MediaModel.Credit&gt;} An array of credits
<a name="line460"></a> *     with the given role. May be empty.
<a name="line461"></a> */
<a name="line462"></a>goog.ui.media.MediaModel.prototype.findCreditsWithRole = function(role) {
<a name="line463"></a>  var credits = goog.array.filter(this.credits_, function(credit) {
<a name="line464"></a>    return role == credit.getRole();
<a name="line465"></a>  });
<a name="line466"></a>  return /** @type {!Array.&lt;!goog.ui.media.MediaModel.Credit&gt;} */ (credits);
<a name="line467"></a>};
<a name="line468"></a>
<a name="line469"></a>
<a name="line470"></a>/**
<a name="line471"></a> * Gets the subtitles for the media.
<a name="line472"></a> * @return {Array.&lt;goog.ui.media.MediaModel.SubTitle&gt;} The subtitles.
<a name="line473"></a> */
<a name="line474"></a>goog.ui.media.MediaModel.prototype.getSubTitles = function() {
<a name="line475"></a>  return this.subTitles_;
<a name="line476"></a>};
<a name="line477"></a>
<a name="line478"></a>
<a name="line479"></a>/**
<a name="line480"></a> * Sets the subtitles for the media
<a name="line481"></a> * @param {Array.&lt;goog.ui.media.MediaModel.SubTitle&gt;} subtitles The subtitles.
<a name="line482"></a> * @return {!goog.ui.media.MediaModel} The object itself.
<a name="line483"></a> */
<a name="line484"></a>goog.ui.media.MediaModel.prototype.setSubTitles = function(subtitles) {
<a name="line485"></a>  this.subTitles_ = subtitles;
<a name="line486"></a>  return this;
<a name="line487"></a>};
<a name="line488"></a>
<a name="line489"></a>
<a name="line490"></a>
<a name="line491"></a>/**
<a name="line492"></a> * Constructs a thumbnail containing details of the thumbnail&#39;s image URL and
<a name="line493"></a> * optionally its size.
<a name="line494"></a> * @param {string} url The URL of the thumbnail&#39;s image.
<a name="line495"></a> * @param {goog.math.Size=} opt_size The size of the thumbnail&#39;s image if known.
<a name="line496"></a> * @constructor
<a name="line497"></a> */
<a name="line498"></a>goog.ui.media.MediaModel.Thumbnail = function(url, opt_size) {
<a name="line499"></a>  /**
<a name="line500"></a>   * The thumbnail&#39;s image URL.
<a name="line501"></a>   * @type {string}
<a name="line502"></a>   * @private
<a name="line503"></a>   */
<a name="line504"></a>  this.url_ = url;
<a name="line505"></a>
<a name="line506"></a>  /**
<a name="line507"></a>   * The size of the thumbnail&#39;s image if known.
<a name="line508"></a>   * @type {goog.math.Size}
<a name="line509"></a>   * @private
<a name="line510"></a>   */
<a name="line511"></a>  this.size_ = opt_size || null;
<a name="line512"></a>};
<a name="line513"></a>
<a name="line514"></a>
<a name="line515"></a>/**
<a name="line516"></a> * Gets the thumbnail URL.
<a name="line517"></a> * @return {string} The thumbnail&#39;s image URL.
<a name="line518"></a> */
<a name="line519"></a>goog.ui.media.MediaModel.Thumbnail.prototype.getUrl = function() {
<a name="line520"></a>  return this.url_;
<a name="line521"></a>};
<a name="line522"></a>
<a name="line523"></a>
<a name="line524"></a>/**
<a name="line525"></a> * Sets the thumbnail URL.
<a name="line526"></a> * @param {string} url The thumbnail&#39;s image URL.
<a name="line527"></a> * @return {goog.ui.media.MediaModel.Thumbnail} The object itself, used for
<a name="line528"></a> *     chaining.
<a name="line529"></a> */
<a name="line530"></a>goog.ui.media.MediaModel.Thumbnail.prototype.setUrl = function(url) {
<a name="line531"></a>  this.url_ = url;
<a name="line532"></a>  return this;
<a name="line533"></a>};
<a name="line534"></a>
<a name="line535"></a>
<a name="line536"></a>/**
<a name="line537"></a> * Gets the thumbnail size.
<a name="line538"></a> * @return {goog.math.Size} The size of the thumbnail&#39;s image if known.
<a name="line539"></a> */
<a name="line540"></a>goog.ui.media.MediaModel.Thumbnail.prototype.getSize = function() {
<a name="line541"></a>  return this.size_;
<a name="line542"></a>};
<a name="line543"></a>
<a name="line544"></a>
<a name="line545"></a>/**
<a name="line546"></a> * Sets the thumbnail size.
<a name="line547"></a> * @param {goog.math.Size} size The size of the thumbnail&#39;s image.
<a name="line548"></a> * @return {goog.ui.media.MediaModel.Thumbnail} The object itself, used for
<a name="line549"></a> *     chaining.
<a name="line550"></a> */
<a name="line551"></a>goog.ui.media.MediaModel.Thumbnail.prototype.setSize = function(size) {
<a name="line552"></a>  this.size_ = size;
<a name="line553"></a>  return this;
<a name="line554"></a>};
<a name="line555"></a>
<a name="line556"></a>
<a name="line557"></a>
<a name="line558"></a>/**
<a name="line559"></a> * Constructs a player containing details of the player&#39;s URL and
<a name="line560"></a> * optionally its size.
<a name="line561"></a> * @param {string} url The URL of the player.
<a name="line562"></a> * @param {Object=} opt_vars Optional map of arguments to the player.
<a name="line563"></a> * @param {goog.math.Size=} opt_size The size of the player if known.
<a name="line564"></a> * @constructor
<a name="line565"></a> */
<a name="line566"></a>goog.ui.media.MediaModel.Player = function(url, opt_vars, opt_size) {
<a name="line567"></a>  /**
<a name="line568"></a>   * The player&#39;s URL.
<a name="line569"></a>   * @type {string}
<a name="line570"></a>   * @private
<a name="line571"></a>   */
<a name="line572"></a>  this.url_ = url;
<a name="line573"></a>
<a name="line574"></a>  /**
<a name="line575"></a>   * Player arguments, typically flash arguments.
<a name="line576"></a>   * @type {Object}
<a name="line577"></a>   * @private
<a name="line578"></a>   */
<a name="line579"></a>  this.vars_ = opt_vars || null;
<a name="line580"></a>
<a name="line581"></a>  /**
<a name="line582"></a>   * The size of the player if known.
<a name="line583"></a>   * @type {goog.math.Size}
<a name="line584"></a>   * @private
<a name="line585"></a>   */
<a name="line586"></a>  this.size_ = opt_size || null;
<a name="line587"></a>};
<a name="line588"></a>
<a name="line589"></a>
<a name="line590"></a>/**
<a name="line591"></a> * Gets the player url.
<a name="line592"></a> * @return {string} The thumbnail&#39;s image URL.
<a name="line593"></a> */
<a name="line594"></a>goog.ui.media.MediaModel.Player.prototype.getUrl = function() {
<a name="line595"></a>  return this.url_;
<a name="line596"></a>};
<a name="line597"></a>
<a name="line598"></a>
<a name="line599"></a>/**
<a name="line600"></a> * Sets the player url.
<a name="line601"></a> * @param {string} url The thumbnail&#39;s image URL.
<a name="line602"></a> * @return {goog.ui.media.MediaModel.Player} The object itself, used for
<a name="line603"></a> *     chaining.
<a name="line604"></a> */
<a name="line605"></a>goog.ui.media.MediaModel.Player.prototype.setUrl = function(url) {
<a name="line606"></a>  this.url_ = url;
<a name="line607"></a>  return this;
<a name="line608"></a>};
<a name="line609"></a>
<a name="line610"></a>
<a name="line611"></a>/**
<a name="line612"></a> * Gets the player arguments.
<a name="line613"></a> * @return {Object} The media player arguments.
<a name="line614"></a> */
<a name="line615"></a>goog.ui.media.MediaModel.Player.prototype.getVars = function() {
<a name="line616"></a>  return this.vars_;
<a name="line617"></a>};
<a name="line618"></a>
<a name="line619"></a>
<a name="line620"></a>/**
<a name="line621"></a> * Sets the player arguments.
<a name="line622"></a> * @param {Object} vars The media player arguments.
<a name="line623"></a> * @return {goog.ui.media.MediaModel.Player} The object itself, used for
<a name="line624"></a> *     chaining.
<a name="line625"></a> */
<a name="line626"></a>goog.ui.media.MediaModel.Player.prototype.setVars = function(vars) {
<a name="line627"></a>  this.vars_ = vars;
<a name="line628"></a>  return this;
<a name="line629"></a>};
<a name="line630"></a>
<a name="line631"></a>
<a name="line632"></a>/**
<a name="line633"></a> * Gets the size of the player.
<a name="line634"></a> * @return {goog.math.Size} The size of the player if known.
<a name="line635"></a> */
<a name="line636"></a>goog.ui.media.MediaModel.Player.prototype.getSize = function() {
<a name="line637"></a>  return this.size_;
<a name="line638"></a>};
<a name="line639"></a>
<a name="line640"></a>
<a name="line641"></a>/**
<a name="line642"></a> * Sets the size of the player.
<a name="line643"></a> * @param {goog.math.Size} size The size of the player.
<a name="line644"></a> * @return {goog.ui.media.MediaModel.Player} The object itself, used for
<a name="line645"></a> *     chaining.
<a name="line646"></a> */
<a name="line647"></a>goog.ui.media.MediaModel.Player.prototype.setSize = function(size) {
<a name="line648"></a>  this.size_ = size;
<a name="line649"></a>  return this;
<a name="line650"></a>};
<a name="line651"></a>
<a name="line652"></a>
<a name="line653"></a>
<a name="line654"></a>/**
<a name="line655"></a> * A taxonomy to be set that gives an indication of the type of media content,
<a name="line656"></a> * and its particular contents.
<a name="line657"></a> * @param {string} scheme The URI that identifies the categorization scheme.
<a name="line658"></a> * @param {string} value The value of the category.
<a name="line659"></a> * @param {string=} opt_label The human readable label that can be displayed in
<a name="line660"></a> *     end user applications.
<a name="line661"></a> * @constructor
<a name="line662"></a> */
<a name="line663"></a>goog.ui.media.MediaModel.Category = function(scheme, value, opt_label) {
<a name="line664"></a>  /**
<a name="line665"></a>   * The URI that identifies the categorization scheme.
<a name="line666"></a>   * @type {string}
<a name="line667"></a>   * @private
<a name="line668"></a>   */
<a name="line669"></a>  this.scheme_ = scheme;
<a name="line670"></a>
<a name="line671"></a>  /**
<a name="line672"></a>   * The value of the category.
<a name="line673"></a>   * @type {string}
<a name="line674"></a>   * @private
<a name="line675"></a>   */
<a name="line676"></a>  this.value_ = value;
<a name="line677"></a>
<a name="line678"></a>  /**
<a name="line679"></a>   * The human readable label that can be displayed in end user applications.
<a name="line680"></a>   * @type {string}
<a name="line681"></a>   * @private
<a name="line682"></a>   */
<a name="line683"></a>  this.label_ = opt_label || &#39;&#39;;
<a name="line684"></a>};
<a name="line685"></a>
<a name="line686"></a>
<a name="line687"></a>/**
<a name="line688"></a> * Gets the category scheme.
<a name="line689"></a> * @return {string} The category scheme URI.
<a name="line690"></a> */
<a name="line691"></a>goog.ui.media.MediaModel.Category.prototype.getScheme = function() {
<a name="line692"></a>  return this.scheme_;
<a name="line693"></a>};
<a name="line694"></a>
<a name="line695"></a>
<a name="line696"></a>/**
<a name="line697"></a> * Sets the category scheme.
<a name="line698"></a> * @param {string} scheme The category&#39;s scheme.
<a name="line699"></a> * @return {goog.ui.media.MediaModel.Category} The object itself, used for
<a name="line700"></a> *     chaining.
<a name="line701"></a> */
<a name="line702"></a>goog.ui.media.MediaModel.Category.prototype.setScheme = function(scheme) {
<a name="line703"></a>  this.scheme_ = scheme;
<a name="line704"></a>  return this;
<a name="line705"></a>};
<a name="line706"></a>
<a name="line707"></a>
<a name="line708"></a>/**
<a name="line709"></a> * Gets the categor&#39;s value.
<a name="line710"></a> * @return {string} The category&#39;s value.
<a name="line711"></a> */
<a name="line712"></a>goog.ui.media.MediaModel.Category.prototype.getValue = function() {
<a name="line713"></a>  return this.value_;
<a name="line714"></a>};
<a name="line715"></a>
<a name="line716"></a>
<a name="line717"></a>/**
<a name="line718"></a> * Sets the category value.
<a name="line719"></a> * @param {string} value The category value to be set.
<a name="line720"></a> * @return {goog.ui.media.MediaModel.Category} The object itself, used for
<a name="line721"></a> *     chaining.
<a name="line722"></a> */
<a name="line723"></a>goog.ui.media.MediaModel.Category.prototype.setValue = function(value) {
<a name="line724"></a>  this.value_ = value;
<a name="line725"></a>  return this;
<a name="line726"></a>};
<a name="line727"></a>
<a name="line728"></a>
<a name="line729"></a>/**
<a name="line730"></a> * Gets the label of the category.
<a name="line731"></a> * @return {string} The label of the category.
<a name="line732"></a> */
<a name="line733"></a>goog.ui.media.MediaModel.Category.prototype.getLabel = function() {
<a name="line734"></a>  return this.label_;
<a name="line735"></a>};
<a name="line736"></a>
<a name="line737"></a>
<a name="line738"></a>/**
<a name="line739"></a> * Sets the label of the category.
<a name="line740"></a> * @param {string} label The label of the category.
<a name="line741"></a> * @return {goog.ui.media.MediaModel.Category} The object itself, used for
<a name="line742"></a> *     chaining.
<a name="line743"></a> */
<a name="line744"></a>goog.ui.media.MediaModel.Category.prototype.setLabel = function(label) {
<a name="line745"></a>  this.label_ = label;
<a name="line746"></a>  return this;
<a name="line747"></a>};
<a name="line748"></a>
<a name="line749"></a>
<a name="line750"></a>
<a name="line751"></a>/**
<a name="line752"></a> * Indicates an entity that has contributed to a media object. Based on
<a name="line753"></a> * &#39;media.credit&#39; in the rss spec.
<a name="line754"></a> * @param {string} value The name of the entity being credited.
<a name="line755"></a> * @param {goog.ui.media.MediaModel.Credit.Role=} opt_role The role the entity
<a name="line756"></a> *     played.
<a name="line757"></a> * @param {goog.ui.media.MediaModel.Credit.Scheme=} opt_scheme The URI that
<a name="line758"></a> *     identifies the role scheme.
<a name="line759"></a> * @constructor
<a name="line760"></a> */
<a name="line761"></a>goog.ui.media.MediaModel.Credit = function(value, opt_role, opt_scheme) {
<a name="line762"></a>  /**
<a name="line763"></a>   * The name of entity being credited.
<a name="line764"></a>   * @type {string}
<a name="line765"></a>   * @private
<a name="line766"></a>   */
<a name="line767"></a>  this.value_ = value;
<a name="line768"></a>
<a name="line769"></a>  /**
<a name="line770"></a>   * The role the entity played.
<a name="line771"></a>   * @type {goog.ui.media.MediaModel.Credit.Role|undefined}
<a name="line772"></a>   * @private
<a name="line773"></a>   */
<a name="line774"></a>  this.role_ = opt_role;
<a name="line775"></a>
<a name="line776"></a>  /**
<a name="line777"></a>   * The URI that identifies the role scheme
<a name="line778"></a>   * @type {goog.ui.media.MediaModel.Credit.Scheme|undefined}
<a name="line779"></a>   * @private
<a name="line780"></a>   */
<a name="line781"></a>  this.scheme_ = opt_scheme;
<a name="line782"></a>};
<a name="line783"></a>
<a name="line784"></a>
<a name="line785"></a>/**
<a name="line786"></a> * The types of known roles.
<a name="line787"></a> * @enum {string}
<a name="line788"></a> */
<a name="line789"></a>goog.ui.media.MediaModel.Credit.Role = {
<a name="line790"></a>  UPLOADER: &#39;uploader&#39;,
<a name="line791"></a>  OWNER: &#39;owner&#39;
<a name="line792"></a>};
<a name="line793"></a>
<a name="line794"></a>
<a name="line795"></a>/**
<a name="line796"></a> * The types of known schemes.
<a name="line797"></a> * @enum {string}
<a name="line798"></a> */
<a name="line799"></a>goog.ui.media.MediaModel.Credit.Scheme = {
<a name="line800"></a>  EUROPEAN_BROADCASTING: &#39;urn:ebu&#39;,
<a name="line801"></a>  YAHOO: &#39;urn:yvs&#39;,
<a name="line802"></a>  YOUTUBE: &#39;urn:youtube&#39;
<a name="line803"></a>};
<a name="line804"></a>
<a name="line805"></a>
<a name="line806"></a>/**
<a name="line807"></a> * Gets the name of the entity being credited.
<a name="line808"></a> * @return {string} The name of the entity.
<a name="line809"></a> */
<a name="line810"></a>goog.ui.media.MediaModel.Credit.prototype.getValue = function() {
<a name="line811"></a>  return this.value_;
<a name="line812"></a>};
<a name="line813"></a>
<a name="line814"></a>
<a name="line815"></a>/**
<a name="line816"></a> * Sets the value of the credit object.
<a name="line817"></a> * @param {string} value The value.
<a name="line818"></a> * @return {goog.ui.media.MediaModel.Credit} The object itself.
<a name="line819"></a> */
<a name="line820"></a>goog.ui.media.MediaModel.Credit.prototype.setValue = function(value) {
<a name="line821"></a>  this.value_ = value;
<a name="line822"></a>  return this;
<a name="line823"></a>};
<a name="line824"></a>
<a name="line825"></a>
<a name="line826"></a>/**
<a name="line827"></a> * Gets the role of the entity being credited.
<a name="line828"></a> * @return {goog.ui.media.MediaModel.Credit.Role|undefined} The role of the
<a name="line829"></a> *     entity.
<a name="line830"></a> */
<a name="line831"></a>goog.ui.media.MediaModel.Credit.prototype.getRole = function() {
<a name="line832"></a>  return this.role_;
<a name="line833"></a>};
<a name="line834"></a>
<a name="line835"></a>
<a name="line836"></a>/**
<a name="line837"></a> * Sets the role of the credit object.
<a name="line838"></a> * @param {goog.ui.media.MediaModel.Credit.Role} role The role.
<a name="line839"></a> * @return {goog.ui.media.MediaModel.Credit} The object itself.
<a name="line840"></a> */
<a name="line841"></a>goog.ui.media.MediaModel.Credit.prototype.setRole = function(role) {
<a name="line842"></a>  this.role_ = role;
<a name="line843"></a>  return this;
<a name="line844"></a>};
<a name="line845"></a>
<a name="line846"></a>
<a name="line847"></a>/**
<a name="line848"></a> * Gets the scheme of the credit object.
<a name="line849"></a> * @return {goog.ui.media.MediaModel.Credit.Scheme|undefined} The URI that
<a name="line850"></a> *     identifies the role scheme.
<a name="line851"></a> */
<a name="line852"></a>goog.ui.media.MediaModel.Credit.prototype.getScheme = function() {
<a name="line853"></a>  return this.scheme_;
<a name="line854"></a>};
<a name="line855"></a>
<a name="line856"></a>
<a name="line857"></a>/**
<a name="line858"></a> * Sets the scheme of the credit object.
<a name="line859"></a> * @param {goog.ui.media.MediaModel.Credit.Scheme} scheme The scheme.
<a name="line860"></a> * @return {goog.ui.media.MediaModel.Credit} The object itself.
<a name="line861"></a> */
<a name="line862"></a>goog.ui.media.MediaModel.Credit.prototype.setScheme = function(scheme) {
<a name="line863"></a>  this.scheme_ = scheme;
<a name="line864"></a>  return this;
<a name="line865"></a>};
<a name="line866"></a>
<a name="line867"></a>
<a name="line868"></a>
<a name="line869"></a>/**
<a name="line870"></a> * A reference to the subtitle URI for a media object.
<a name="line871"></a> * Implements the &#39;media.subTitle&#39; in the rss spec.
<a name="line872"></a> *
<a name="line873"></a> * @param {string} href The subtitle&#39;s URI.
<a name="line874"></a> *     to fetch the subtitle file.
<a name="line875"></a> * @param {string} lang An RFC 3066 language.
<a name="line876"></a> * @param {string} type The MIME type of the URI.
<a name="line877"></a> * @constructor
<a name="line878"></a> */
<a name="line879"></a>goog.ui.media.MediaModel.SubTitle = function(href, lang, type) {
<a name="line880"></a>  /**
<a name="line881"></a>   * The subtitle href.
<a name="line882"></a>   * @type {string}
<a name="line883"></a>   * @private
<a name="line884"></a>   */
<a name="line885"></a>  this.href_ = href;
<a name="line886"></a>
<a name="line887"></a>  /**
<a name="line888"></a>   * The RFC 3066 language.
<a name="line889"></a>   * @type {string}
<a name="line890"></a>   * @private
<a name="line891"></a>   */
<a name="line892"></a>  this.lang_ = lang;
<a name="line893"></a>
<a name="line894"></a>  /**
<a name="line895"></a>   * The MIME type of the resource.
<a name="line896"></a>   * @type {string}
<a name="line897"></a>   * @private
<a name="line898"></a>   */
<a name="line899"></a>  this.type_ = type;
<a name="line900"></a>};
<a name="line901"></a>
<a name="line902"></a>
<a name="line903"></a>/**
<a name="line904"></a> * Sets the href for the subtitle object.
<a name="line905"></a> * @param {string} href The subtitle&#39;s URI.
<a name="line906"></a> * @return {goog.ui.media.MediaModel.SubTitle} The object itself.
<a name="line907"></a> */
<a name="line908"></a>goog.ui.media.MediaModel.SubTitle.prototype.setHref = function(href) {
<a name="line909"></a>  this.href_ = href;
<a name="line910"></a>  return this;
<a name="line911"></a>};
<a name="line912"></a>
<a name="line913"></a>
<a name="line914"></a>/**
<a name="line915"></a> * Get the href for the subtitle object.
<a name="line916"></a> * @return {string} href The subtitle&#39;s URI.
<a name="line917"></a> */
<a name="line918"></a>goog.ui.media.MediaModel.SubTitle.prototype.getHref = function() {
<a name="line919"></a>  return this.href_;
<a name="line920"></a>};
<a name="line921"></a>
<a name="line922"></a>
<a name="line923"></a>/**
<a name="line924"></a> * Sets the language for the subtitle object.
<a name="line925"></a> * @param {string} lang The RFC 3066 language.
<a name="line926"></a> * @return {goog.ui.media.MediaModel.SubTitle} The object itself.
<a name="line927"></a> */
<a name="line928"></a>goog.ui.media.MediaModel.SubTitle.prototype.setLang = function(lang) {
<a name="line929"></a>  this.lang_ = lang;
<a name="line930"></a>  return this;
<a name="line931"></a>};
<a name="line932"></a>
<a name="line933"></a>
<a name="line934"></a>/**
<a name="line935"></a> * Get the lang for the subtitle object.
<a name="line936"></a> * @return {string} lang The RFC 3066 language.
<a name="line937"></a> */
<a name="line938"></a>goog.ui.media.MediaModel.SubTitle.prototype.getLang = function() {
<a name="line939"></a>  return this.lang_;
<a name="line940"></a>};
<a name="line941"></a>
<a name="line942"></a>
<a name="line943"></a>/**
<a name="line944"></a> * Sets the type for the subtitle object.
<a name="line945"></a> * @param {string} type The MIME type.
<a name="line946"></a> * @return {goog.ui.media.MediaModel.SubTitle} The object itself.
<a name="line947"></a> */
<a name="line948"></a>goog.ui.media.MediaModel.SubTitle.prototype.setType = function(type) {
<a name="line949"></a>  this.type_ = type;
<a name="line950"></a>  return this;
<a name="line951"></a>};
<a name="line952"></a>
<a name="line953"></a>
<a name="line954"></a>/**
<a name="line955"></a> * Get the type for the subtitle object.
<a name="line956"></a> * @return {string} type The MIME type.
<a name="line957"></a> */
<a name="line958"></a>goog.ui.media.MediaModel.SubTitle.prototype.getType = function() {
<a name="line959"></a>  return this.type_;
<a name="line960"></a>};
</pre>


</body>
</html>
